//
//  DeleteRenGouController.m
//  LuCaiZhu
//
//  Created by intco on 2018/12/25.
//
#import "CKPuslichTool.h"
#import "DeleteRenGouController.h"

@interface DeleteRenGouController ()
@property (weak, nonatomic) IBOutlet UIView *bgView;
@property (weak, nonatomic) IBOutlet UIButton *okBt;
@property (weak, nonatomic) IBOutlet UIView *reminderBg;
@property (weak, nonatomic) IBOutlet UIView *yuyueView;
@property (weak, nonatomic) IBOutlet UILabel *yuyueLabel;

@end

@implementation DeleteRenGouController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIViewSetRadius(_bgView, 5, 0, nil);
    UIViewSetRadius(_reminderBg, 5, 0, nil);
    UIViewSetRadius(_yuyueView, 5, 0, nil);
    UIViewSetRadius(_okBt, 22, 0, nil);
    if (_isReminder) {
        _reminderBg.hidden = NO;
    }else{
        _reminderBg.hidden = YES;
    }
    if (_isYuYue) {
        _yuyueView.hidden = NO;
        _yuyueLabel.text = _yuyueText;
    }else{
        _yuyueView.hidden = YES;
    }
}
- (IBAction)myBtPress:(UIButton *)sender {
    if (sender.tag == 1) {
        if (self.returnBlock) {
            self.returnBlock();
        }
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
